<template>
  <h3>修改密码</h3>

  <a @click="router.go('-1')">返回</a>
  <a @click="router.push('home')">进首页</a>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();
</script>

<style lang="less" scoped>
a {
  color: dodgerblue;
  cursor: pointer;

  & + a {
    margin-left: 5px;
  }
}
</style>